package com.lhl.netty.netty;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class NettyApplication {

    public static void main(String[] args) {

        ConfigurableApplicationContext run = SpringApplication.run(NettyApplication.class, args);
        NettyServer nettyServer = run.getBean(NettyServer.class);
        nettyServer.run();
    }

}
